<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>{$title}</title>
<meta name="description" content="{$description}" />
<meta name="keywords" content="{$keywords}" />
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp"/>

<link rel="stylesheet" href="__PUBLIC__/amazeui/css/amazeui.css">
<link rel="stylesheet" href="__PUBLIC__/css/common.css">
<link rel="stylesheet" href="__CSS__/style.css">
<!--在这里编写你的代码-->

<script src="__PUBLIC__/jquery.min.js"></script>
<script src="__PUBLIC__/amazeui/js/amazeui.js"></script>
<!--[if lte IE 8 ]>
<script src="__PUBLIC__/respond.min.js"></script>
<script src="__PUBLIC__/html5shiv.min.js"></script>
<script src="__PUBLIC__/amazeui/js/amazeui.legacy.min.js"></script>
<![endif]-->
<script type="text/javascript">
(function(){
    var ThinkPHP = window.Think = {
        "ROOT"   : "__ROOT__", //当前网站地址
        "APP"    : "__APP__", //当前项目地址
        "PUBLIC" : "__PUBLIC__", //项目公共目录地址
        "DEEP"   : "{:C('URL_PATHINFO_DEPR')}", //PATHINFO分割符
        "MODEL"  : ["{:C('URL_MODEL')}", "{:C('URL_CASE_INSENSITIVE')}", "{:C('URL_HTML_SUFFIX')}"],
        "VAR"    : ["{:C('VAR_MODULE')}", "{:C('VAR_CONTROLLER')}", "{:C('VAR_ACTION')}"]
    }
})();
</script>
</head>
<body class="amz-index">
<!--[if lte IE 9 ]>
    <div class="am-alert am-alert-danger ie-warning" data-am-alert>
        <button type="button" class="am-close">
            &times;
        </button>
        <div class="am-container am-text-center" style="font-size:14px;">
            365 安全卫士提醒：你的浏览器太古董了，请使用更高级的版本，<a href="http://browsehappy.com/" target="_blank">还不速速换一个</a>！
        </div>
    </div>
<![endif]-->
{:hook('pageHeader')}
<div class="am-topbar am-topbar-inverse header" data-am-sticky>
    <div class="am-container am-cf">
        <h1>
            <a href="/">SentCMS</a>
            <span class="am-badge am-badge-danger">beta</span>
        </h1>
        <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#doc-topbar-collapse'}">
            <span class="am-sr-only">导航切换</span>
            <span class="am-icon-bars"></span>
        </button>
        <div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
            <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-left">
            <think:nav name="nav">
                <eq name="nav.pid" value="0">
                <li>
                    <a href="{$nav.url|get_nav_url}" target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}</a>
                </li>
                </eq>
            </think:nav>
            </ul>
            <php>
            $user = session('user_auth');
            </php>
            <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right">
                <!-- <li><a href="{:U('User/Message/index')}"><i class="am-icon am-icon-comments"></i> 消息</a></li> -->
                <li><a href="{:U('User/Config/index')}"><i class="am-icon am-icon-cog"></i> 设置</a></li>
                <li class="am-dropdown" data-am-dropdown>
                    <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">{$user['username']} <span class="am-icon-caret-down"></span></a>
                    <ul class="am-dropdown-content">
                        <li><a href="{:U('User/Index/index')}"><i class="am-icon am-icon-user"></i>&nbsp;&nbsp;个人主页</a></li>
                        <if condition="is_administrator()">
                        <li><a href="admin.php" target="_blank"><span
                        class="glyphicon glyphicon-dashboard"></span><i class="am-icon am-icon-server"></i>&nbsp;&nbsp;管理后台</a></li>
                        </if>
                        <li class="am-divider"></li>
                        <li><a href="{:U('User/Public/logout')}"><i class="am-icon am-icon-power-off"></i>&nbsp;&nbsp;注销</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>